package ast;

import visitor.*;

public class ExpresionLogica extends AbstractExpresion
{
	public ExpresionLogica(Expresion left, String operator, Expresion right, boolean unaria){
		this.left = left;
		this.operator = operator;
		this.right = right;
		this.unaria = unaria;
	}
	public ExpresionLogica(Object left, Object operator, Object right, Object unaria){
		this.left = (Expresion)left;
		this.operator = (String)operator;
		this.right = (Expresion)right;
		this.unaria = Boolean.valueOf((String)unaria);
	}


	public Object accept(Visitor v, Object param) { 
		return v.visit(this, param);
	}

	public Expresion left;
	public String operator;
	public Expresion right;
	public boolean unaria;
}
